package com.sunye.elasticsearch.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sunye.elasticsearch.entity.EsDogSellingPoint;
import com.sunye.elasticsearch.entity.EsDogSellingPointIndex;
import com.sunye.elasticsearch.mapper.EsDogSellingPointMapper;
//import com.sunye.elasticsearch.repository.EsDogIndexRepository;
import com.sunye.elasticsearch.service.EsDogSellingPointService;
import com.sunye.mongodb.MongoDogSellingPointIndex;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author sunye
 * @since 2022-07-13
 */
@Slf4j
@Service
public class EsDogSellingPointServiceImpl extends ServiceImpl<EsDogSellingPointMapper, EsDogSellingPoint> implements EsDogSellingPointService {
    @Override
    public List<EsDogSellingPointIndex> getSellingPoint(List<String> sellingPointIds) {
        return this.baseMapper.getSellingPoint(sellingPointIds);
    }

    @Override
    public EsDogSellingPoint getEsDogSellingPointById(String id) {
        return this.baseMapper.getEsDogSellingPointById(id);
    }

    @Override
    public List<MongoDogSellingPointIndex> getMongoSellingPoint(List<String> sellingPointIds) {
        return this.baseMapper.getMongoSellingPoint(sellingPointIds);
    }
}
